<template>
	<view class="loading-box"></view>
</template>

<script>
	/**
	 * PageLoading 页面加载动画
	 * @description 初始化加载动画CSS版
	 */
	export default {
		name:"PageLoading",
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.loading-box{
		max-width: $max-width;
		margin: $pc-margin;
		width: 100%;
		height: 100vh;
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.loading-box::before{
		content: "";
		position: absolute;
		width: 120px;
		height: 120px;
		box-sizing: border-box;
		border-radius: 10px;
		background-color: rgba(0, 0, 0, 0.5);
	}
	.loading-box::after{
		content: "";
		position: absolute;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		border: 5px solid #333;
		border-top: 5px solid #f3f3f3;
		animation: spin 1s linear infinite;
	}
	@keyframes spin {
	  100% {
		  transform: rotate(360deg);
	  }
	}
</style>